export const getStatusBarHeight = _ => {
	let res = uni.getSystemInfoSync();
	let statusBarHeight = res.statusBarHeight + 20;
	return statusBarHeight;
}
export const convertToK = (amount) => {
  // 如果金额大于等于1000，进行转换
  if (amount >= 1000) {
    return (amount / 1000).toFixed(1) + 'k'; // 保留1位小数
  } else {
    return amount + '元'; // 如果金额小于1000，直接显示
  }
}